
#include("includes/header.xhtml")


<div class="panel">
    <h3>List Running Process</h3>
   	<table bgcolor="#000000" border="0" cellpadding="3" cellspacing="1" width="98%" align="center">
    
    <tr bgcolor="green" align="center">
        <td><b>Id</b></td>
        <td><b>Started Time</b></td>
        <td><b>Name</b></td>
        <td><b>Version</b></td>
        <td><b>State</b></td>
        <td><b>Due Date</b></td>
        <td><b>Service Level Monitor</b></td>
        <td><b>Action</b></td>
    </tr>
    #if($processMap.total == "1")
    <tr bgcolor="#ffffff" onmouseover="javascript:this.style.background='#C3FDB8';" onmouseout="javascript:this.style.background='#ffffff';">
        <td>$!processMap.data.id</td>
        <td>$!processMap.data.startedTime</td>
        <td>$!processMap.data.name</td>
        <td align="center">$!processMap.data.version</td>
        <td align="center">$!processMap.data.state</td>
        <td align="center">$!processMap.data.due</td>
        <td align="center">$!processMap.data.serviceLevelMonitor</td>
        <td align="center">
            <a href="/Yama/joget/process/start/$urlEncoder.encode($!j.id)">
                <img src="/Yama/images/silk/application_view_detail.png" title="Run Process" border="0"/></a>
        </td>
    </tr>
    #else
    #foreach($j in $processMap.data)
    <tr bgcolor="#ffffff" onmouseover="javascript:this.style.background='#C3FDB8';" onmouseout="javascript:this.style.background='#ffffff';">
        <td>$!j.id</td>
        <td>$!j.startedTime</td>
        <td>$!j.name</td>
        <td align="center">$!j.version</td>
        <td align="center">$!j.state</td>
        <td align="center">$!j.due</td>
        <td align="center">$!j.serviceLevelMonitor</td>
        <td align="center">
            <a href="/Yama/joget/running/process/view/$urlEncoder.encode($!j.id)">
                <img src="/Yama/images/silk/application_view_detail.png" title="View Process" border="0"/></a>&nbsp;&nbsp;
        	<a href="/Yama/joget/running/process/abort/$urlEncoder.encode($!j.id)" onclick="javascript:return confirm('Are you sure want to abort $!p.firstName');">
                <img src="/Yama/images/silk/delete.png" title="Abort Process" border="0"/></a>
        	
        </td>
    </tr>
    #end
    #end
        </table>
</div>

#include("includes/footer.xhtml")
